public class Test8 {
    public static int max2(int a,int b){
        return a>b?a:b;
    }
    public static int max3(int a,int b,int c){
        int max=max2(a,b);
        int ret=max2(max,c);
        return ret;
    }
    public static void main(String[] args) {
        System.out.println(max3(4,9,2));
    }
}
